#include<reg52.h>
sbit beep=P2^3;

#include"beep.h"

char beep_ctl(unsigned char beep_flag)
{
	if(1 < beep_flag||0 > beep_flag)
		return -1;
	if(1 == beep_flag)
		beep = 0;
	else if(0 == beep_flag)
		beep = 1;
	return 0;
}